﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataAccessLogic;

namespace BusinessLogic
{
    public class EmailType : CodeTable
    {
        public override DatabaseInteractionDescriptor TableInteractionDescription()
        {
            DatabaseInteractionDescriptor desc = new DatabaseInteractionDescriptor();
            desc.CreateStoredProcedure = DataAccessLogic.StoredProcedures.USP_EMAILADDRESSTYPECODE_CREATE;
            desc.DeleteStoredProcedure = DataAccessLogic.StoredProcedures.USP_EMAILADDRESSTYPECODE_DELETE;
            desc.GetByIDStoredProcedure = DataAccessLogic.StoredProcedures.USP_EMAILADDRESSTYPECODE_GETBYID;
            desc.UpdateStoredProcedure = DataAccessLogic.StoredProcedures.USP_EMAILADDRESSTYPECODE_UPDATE;
            return desc;
        }

        public static List<EmailType> GetAll()
        {
            return DataAccess.CodeTable_DA.GetAllEmailTypes();
        }
    }
}